package com.leiyk.rateLimiter.service;

import com.leiyk.rateLimiter.propertie.RateLimierProperties;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

/**
 * @Description: 自定义Bean的测试类
 * @Author: leiyk6
 * @Date: 2024/7/3 14:12
 */


public class TestService {

    @Resource
    RateLimierProperties rateLimierProperties;

    public void print(){
        System.out.println(rateLimierProperties.getStrategy());
        System.out.println(rateLimierProperties.getEnable());
    }
}
